package com.codechen.scaffold.news.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;

import java.io.Serializable;
import java.util.Date;

@Getter
@Setter
@ToString
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName("categories")
public class Categories implements Serializable {

	private static final long serialVersionUID = 1L;

	/**
	 *
	 */
	@TableId(type = IdType.ASSIGN_ID)
	private Integer id;
	/**
	 * 分类名称
	 */
	private String name;
	/**
	 * 分类标识(important/academic/general/notice)
	 */
	private String slug;
	/**
	 * 分类描述
	 */
	private String description;
	/**
	 * 分类图标
	 */
	private String icon;
	/**
	 * 排序权重
	 */
	private Integer sortOrder;
	/**
	 * 创建时间
	 */
	private Date createTime;

	/**
	 * 更新时间
	 */
	private Date updateTime;
	/**
	 * 状态
	 */
	private String status;
}